function menuViewModel() {
    var self = this;
    self.menus=ko.observableArray([]);
    var jmenus = (function() {
        var json = null;
        $.ajax({
           type: "GET",
           async:false,
           contentType: "application/json; charset=utf-8",
           global:false,
           url:"http://localhost:8080/SherCallWeb/webresources/com.shercall.entidades.segmenus",
           //url: "/SherCallWeb/resources/json.json",
           datatype:"json",
           success: function(data){
               json=data;
           }
        });
        return json;
    })();
    self.menus=ko.observableArray(jmenus);
    
};
ko.applyBindings(new menuViewModel());


